package com.example.zbh.dsliao.utils;


import com.example.zbh.dsliao.model.entity.LocalMusic;
import com.example.zbh.dsliao.model.entity.NetSongList;
import com.example.zbh.dsliao.model.entity.PersonalList;

import java.util.ArrayList;
import java.util.List;

public class MyEventBus {




    public static class MusicDatas {
        //传一个数组
        List<LocalMusic> datas;

        public MusicDatas(List<LocalMusic> datas) {
            this.datas = datas;
        }

        //通过getDatas获取出来
        public List<LocalMusic> getDatas() {
            return datas;
        }
    }



    public static class UpDataSeek {
        int progress;

        public UpDataSeek(int progress) {
            this.progress = progress;
        }

        public int getProgress() {
            return progress;
        }
    }



    public static class ActivityCreate {
        int what;

        public ActivityCreate(int what) {
            this.what = what;
        }

        public int getWhat() {
            return what;
        }
    }



    public static class SeekBarMax {
        int max;

        public SeekBarMax(int max) {
            this.max = max;
        }

        public int getMax() {
            return max;
        }
    }

    //歌手名
    public static class SingerName {
        String singer;

        public SingerName(String singer) {
            this.singer = singer;
        }

        public String getName() {
            return singer;
        }
    }

    //歌名
    public static class SongsName {
        String songTitle;

        public SongsName(String songTitle) {
            this.songTitle = songTitle;
        }

        public String getSongTitle() {
            return songTitle;
        }
    }


    //获得歌曲当前进度
    public static class CurrentIndex {
        int currentIndex;

        public CurrentIndex(int currentIndex) {
            this.currentIndex = currentIndex;
        }

        public int getCurrentIndex() {
            return currentIndex;
        }
    }


    //获得歌曲最大进度
    public static class MaxProgress {
        int MaxProgress;

        public MaxProgress(int maxProgress) {
            MaxProgress = maxProgress;
        }

        public int getMaxProgress() {
            return MaxProgress;
        }
    }






    public static class TestClass{
        List<String> strings;

        public TestClass(List<String> strings) {
            this.strings = strings;
        }

        public List<String> getStrings() {
            return strings;
        }

        public void setStrings(List<String> strings) {
            this.strings = strings;
        }
    }


    //网络歌曲
    public static class NetSong{
        List<NetSongList> lists;

        public NetSong(List<NetSongList> lists) {
            this.lists = lists;
        }


        public List<NetSongList> getLists() {
            return lists;
        }

        public void setLists(List<NetSongList> lists) {
            this.lists = lists;
        }
    }


    /**播放模式**/
    public static  class PlayerMode{
        String mode;

        public PlayerMode(String mode) {
            this.mode = mode;
        }


        public String getMode() {
            return mode;
        }

        public void setMode(String mode) {
            this.mode = mode;
        }

        @Override
        public String toString() {
            return mode;
        }
    }





    /**随机模式---随机数**/
    public static class RandomMode{
         int playerRandom;

        public RandomMode(int playerRandom) {
            this.playerRandom = playerRandom;
        }

        public int getPlayerRandom() {
            return playerRandom;
        }

        public void setPlayerRandom(int playerRandom) {
            this.playerRandom = playerRandom;
        }
    }

    /**当前播放的位置**/
    public static class PlayerCurrentIndex{
        int currentPosition;

        public PlayerCurrentIndex(int currentPosition) {
            this.currentPosition = currentPosition;
        }


        public int getCurrentPosition() {
            return currentPosition;
        }

        public void setCurrentPosition(int currentPosition) {
            this.currentPosition = currentPosition;
        }
    }




}
